<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var arr = [1, 4, 66, 7, 899, 214, 3];
      var arr1 = arr.filter(function (val, i) {
        return val > 10; // 返回的是一个新数组 要用一个新数组接收 循环无法终止
      });
      console.log(arr1);
    </script>
  </body>
</html>
